import redis

redis_pool = redis.ConnectionPool(host='192.168.....', port= 6379, password= '123456', db = 1, decode_responses=True, encoding='UTF-8')
redis_conn = redis.Redis(connection_pool= redis_pool)

keyword_link = {
    '百度': 'www.baidu.com',
    '百' : 'https://baike.baidu.com/item/%E7%99%BE?fromModule=lemma_inlink',
    '辞典' : 'https://baike.baidu.com/item/%E8%BE%9E%E5%85%B8?fromModule=lemma_inlink',
    '专业' : 'https://baike.baidu.com/item/%E4%B8%93%E4%B8%9A/33053?fromModule=lemma_inlink',
}

redis_conn.mset(keyword_link)